import React from 'react';
import Lottie from 'react-lottie';
import animationData from '../../public/images/lottie/loading.json'; 

const LoadingCom = () => {
  const defaultOptions = {
    loop: true,
    autoplay: true, 
    animationData: animationData,
    rendererSettings: {
      preserveAspectRatio: 'xMidYMid slice'
    }
  };

  return <div className='flex h-screen w-full justify-center items-center'>
    <Lottie options={defaultOptions} height={40} width={40} />
  </div>;
};

export default LoadingCom;
